﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CreateSpeech.ascx.cs" Inherits="ElevatorSpeeches.UI.WebForms.Controls.CreateSpeech" %>
<%@ Register Src="~/Controls/ValidationDisplay.ascx" TagName="Validation" TagPrefix="E" %>
<asp:UpdateProgress runat="server" ID="SignUpUpdateProgress" AssociatedUpdatePanelID="SignUpUpdatePanel">
    <ProgressTemplate>
        Saving...<br />
        <img src="http://www.joeon.net/blogfiles/ajax-loader.gif" alt="Loading..." />
    </ProgressTemplate>
</asp:UpdateProgress>

<asp:UpdatePanel runat="Server" ID="SignUpUpdatePanel">
<ContentTemplate>        

<asp:MultiView runat="Server" ID="ControlMultiView" ActiveViewIndex="0">
<asp:View runat="Server" ID="FormView">

Add Speech
<p />

<E:Validation runat="Server" ID="ValidationDisplay" />

Body:<br />
<asp:TextBox 
    runat="Server" 
    ID="Body"
    TextMode="MultiLine"
    Columns="50"
    />
<p />    
Extended Body:<br />
<asp:TextBox 
    runat="Server" 
    ID="ExtendedBody"
    TextMode="MultiLine"
    Columns="50"
    />    
<p />    
<asp:Button 
    runat="Server" 
    ID="AddSpeechButton" 
    Text="Submit"    
    OnClick="AddSpeechButtonOnClick"
    />
</asp:View>
<asp:View runat="Server" ID="ConfirmationView">
    <div class="informationPanel">Speech added.</div>
</asp:View>    
</asp:MultiView>
</ContentTemplate>
</asp:UpdatePanel>